package com.jmp.api.user.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

import java.util.List;

@Data
@Builder
public class LiveInfoApiResponse {
    @ApiModelProperty("0创建直播 1预告进预防页")
    private Integer type;

    @ApiModelProperty(value = "类型列表", dataType = "LiveInfoApiResponse.Type")
    private List<Type> types;

    @ApiModelProperty("直播名称")
    private String name;
    @ApiModelProperty("直播图片")
    private String photo;
    @ApiModelProperty("直播预告时间")
    private String preTime;
    @ApiModelProperty("直播预告剩余时间(毫秒)")
    private long remainingTime;
    @ApiModelProperty("宝贝总数")
    private Integer goodsNum;
    @ApiModelProperty("第一个商品的图片")
    private String goodsPhoto;

    @ApiModel("LiveInfoApiResponse.Type")
    @Data
    @Builder
    public static class Type {
        private Integer typeId;
        private String typeName;
    }
}
